package com.spark.incoicings.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.spark.incoicings.dao.PurchaseDetailMapper;
import com.spark.incoicings.service.PurchaseDetailService;
import com.spark.incoicings.vo.PurchaseDetailVo;
import com.spark.invoicings.entity.PurchaseDetail;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class PurchaseDetailServiceImpl extends ServiceImpl<PurchaseDetailMapper, PurchaseDetail> implements PurchaseDetailService {
    @Resource
    private PurchaseDetailMapper pm;
    @Override
    public List<PurchaseDetail> selectOrderDetail(Integer purchaseOrderId) {
        return pm.selectOrderDetail(purchaseOrderId);
    }

    @Override
    public List<PurchaseDetailVo> selectPurchaseDetailVo(Integer productId) {
        return pm.selectPurchaseDetailVo(productId);
    }

    @Override
    public List<Integer> selectProductIds() {
        return pm.selectProductIds();
    }
}
